package com.dk.feign;


import com.dk.data.Result;
import com.dk.dto.DtItemDTO;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient("dt-es-service")
public interface GoodFeign {
    @PostMapping("/esController/nearby")
    Result<DtItemDTO> getWord(@RequestParam(defaultValue = "1")Integer pageNumber,
                              @RequestParam(defaultValue = "3")Integer pageSize,
                              @RequestParam("word")String word);
}
